package concurrencyCookBook.forkAndJoin;

import java.util.ArrayList;
import java.util.List;

public class ProductGenerator {
	public List<Product> generate(int size){
		List<Product> list=new ArrayList<Product>(size);
		for(int i=0;i<size;i++){
			Product product=new Product();
			product.setName("name:"+i);
			product.setPrice(10);
			list.add(product);
		}
		return list;
	}
}
